package com.yw.common.core.db.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * 数据库表
 * @author aoshiguchen
 * @time 2015-09-23
 */

public class DataTable {
	
	private String tableName;
	private FieldSet fieldSet;
	private Set<DataRow> table;
	
	public DataTable(String name){
		this.table = new HashSet<DataRow>();
		this.tableName = name;
	}

	public Set<DataRow> getTable() {
		return table;
	}

	public void setTable(Set<DataRow> table) {
		this.table = table;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public FieldSet getFieldSet() {
		return fieldSet;
	}

	public void setFieldSet(FieldSet fieldSet) {
		this.fieldSet = fieldSet;
	}

	@Override
	public String toString() {
		return "DataTable [fieldSet=" + fieldSet + ", table=" + table
				+ ", tableName=" + tableName + "]";
	}
	
}
